/**
 * @author lulongwen
 * Date: 2023-08-30 22:38
 * Description: RoundRectangle 圆角矩形
 */

// import React from 'react';
import { number } from 'prop-types';

RoundRectangle.propTypes = {
  width: number.isRequired,
  height: number.isRequired,
};

export function RoundRectangle(props: any) {
  const { width, height } = props;

  return (
    <svg
      xmlns='http://www.w3.org/2000/svg'
      width={width}
      height={height}
      className='block'
    >
      <rect
        // 矩形的左侧位置，x
        x='0'
        // 矩形的顶端位置，y
        y='0'
        // rx 舍入的宽度
        rx='14'
        // ry 确定舍入的高度
        width={width}
        height={height}
        // 填充颜色
        fill='#668de3'
        strokeWidth='0'
        stroke='#fff'
      />
    </svg>
  );
}
